package com.liyiruo.testMain;

import com.liyiruo.service.impl.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author liyiruo
 * @Description
 * @Date 2023/4/18 下午11:10
 */
public class ApplicationContextTest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("beans1.xml");
        UserServiceImpl service = context.getBean("userService", UserServiceImpl.class);
        System.out.println(service);
    }
}
